25
How can I determine if the giving input object is a file, folder (sample 2)

With AxThumbnail1
	Debug.Print( .FormatABC("`The ` + fname + ` ` + ( ffolder = -1 ? `is a folder` : ( ffolder = +1 ? `is a file` : `is not found` ) ) + `.`",,,,"C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg") )
	Debug.Print( .FormatABC("`The ` + fname + ` ` + ( ffolder = -1 ? `is a folder` : ( ffolder = +1 ? `is a file` : `is not found` ) ) + `.`",,,,"C:\Program Files\Exontrol\ExThumbnail\Sample") )
	Debug.Print( .FormatABC("`The ` + ffile + ` ` + ( ffolder = -1 ? `is a folder` : ( ffolder = +1 ? `is a file` : `is not found` ) ) + `.`",,,,"C:\Program Files\Exontrol\ExThumbnail\Sample\elogo2.jpg") )
End With
24
Is there any function to get automatically the size of the file in KB, MB or GB

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Size: <b>` + fsizeF"
	.EndUpdate()
End With
23
How can I get the size of the file (GB)

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Size: <b>` + ( (fsize/1024/1024/1024) format `` ) + ` GB(s)`"
	.EndUpdate()
End With
22
How can I get the size of the file (MB)

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Size: <b>` + ( (fsize/1024/1024) format `` ) + ` MB(s)`"
	.EndUpdate()
End With
21
How can I get the size of the file (KB)

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Size: <b>` + ( (fsize/1024) format `` ) + ` KB(s)`"
	.EndUpdate()
End With
20
How can I get the size of the file (bytes)

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Size: <b>` + fsize + ` byte(s)`"
	.EndUpdate()
End With
19
How do I get the time the file was created, opened and modified

With AxThumbnail1
	.BeginUpdate()
	.Padding = ""
	.Alignment = EXTHUMBNAILLib.TextAlignEnum.exAlignBottomCenter
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Created: <b><r>` + date(fcreated - bias/24/60) + `</b>` + `<br>` + `Modified: <b><r>` + date(fmodified - bias/24/60) + `</b>`+" & _
" `<br>` + `Last Opened: <r><b>` + date(fopened - bias/24/60) + `</b>`"
	.SingleCaption = .Caption
	.EndUpdate()
End With
18
How can I display the date/time the file/folder was last opened

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Opened: <b>` + date(fopened - bias/24/60)"
	.SingleCaption = .Caption
	.EndUpdate()
End With
17
How can I display the date/time the file/folder was last modified

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Modified: <b>` + date(fmodified - bias/24/60)"
	.EndUpdate()
End With
16
How can I display the date/time the file/folder was created

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Created: <b>` + longdate(date(fcreated - bias/24/60)) + ` ` + time(date(fcreated - bias/24/60))"
	.SingleCaption = .Caption
	.EndUpdate()
End With
15
How can I get the alternate name of the file

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Alternate Name: <b>` + faname + `</b>, Name: <b>` + fname"
	.EndUpdate()
End With
14
How can I get the file's extension

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Extension: <b>` + fext"
	.EndUpdate()
End With
13
I've noticed the Caption property can use expressions, based on the file, the question is how can I use that feature without the Caption property

With AxThumbnail1
	Debug.Print( .FormatABC("ffile +` ` + ( len(fname) ? `this is a file/folder`: `not found`)",,,,"C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg") )
End With
12
Can I determine if a file/thumbnail exists (sample 1)

With AxThumbnail1
	.BeginUpdate()
	.AddInputFiles("C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg")
	.AddInputFiles("sss")
	.Caption = "len(fname) ? `this is a file/folder` : `<fgcolor=FF0000><u>not found`"
	.EndUpdate()
End With
11
How can I display the name of the file

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "`Name: <b>` + fname"
	.EndUpdate()
End With
10
How can I display the full name of the file

With AxThumbnail1
	.BeginUpdate()
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
	.Caption = "ffile"
	.EndUpdate()
End With
9
How can I display the index/number of files/thumbnails

With AxThumbnail1
	.BeginUpdate()
	.AcceptFolders = EXTHUMBNAILLib.AcceptFoldersEnum.exIncludeSubFilesOnly
	.AddInputFiles("C:\Program Files\Exontrol\ExThumbnail\Sample")
	.Caption = "(findex + 1) + ` of ` + fcount"
	.EndUpdate()
End With
8
How can I add more files ( sample 3 )

With AxThumbnail1
	.AddInputFiles("C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg")
	.AddInputFiles("C:\Program Files\Exontrol\ExThumbnail\Sample\device.png")
End With
7
How can I add more files ( sample 2 )

With AxThumbnail1
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg\r\nC:\Program Files\Exontrol\ExThumbnail\Sample\logo.png\r\nC:\Program F" & _
"iles\Exontrol\ExThumbnail\Sample\cordova.png"
End With
6
How can I add more files ( sample 1 )

With AxThumbnail1
	.InputFile = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg\r\nC:\Program Files\Exontrol\ExThumbnail\Sample\EndangeredAnimals.png"
End With
5
How do I clear the control's content
With AxThumbnail1
	.InputFile = ""
End With
4
How can I add a file ( sample 3 )

With AxThumbnail1
	.AddInputFiles("C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg")
End With
3
How can I add a file ( sample 2 )

With AxThumbnail1
	.InputFiles = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
End With
2
How can I add a file ( sample 1 )

With AxThumbnail1
	.InputFile = "C:\Program Files\Exontrol\ExThumbnail\Sample\elogo.jpg"
End With
1
How do I change the control's background color
With AxThumbnail1
	.BackColor = RGB(240,240,240)
End With